package com.eaoa.uc.publog.form;

import com.eaoa.base.EABaseForm;
import com.eaoa.vo.pub.PubBilllog;
import com.stony.core.util.CoreUtils;

public class PubBilllogForm extends EABaseForm{
	
	private static final long serialVersionUID = 1L;
	public String getFormid() {
		return FORMID_prefix + getBillno();
	}

	// primary key
	private String billlogno;

	// fields
	private String billno;
	private String billtype;
	private String isshow;
	private String context;
	private String logtype;
	
	public void setVO(PubBilllog vo){
		this.setBilllogno(CoreUtils.formatString(vo.getBilllogno()));
		this.setBillno(CoreUtils.formatString(vo.getBillno()));
		this.setBilltype(vo.getBilltype());
		this.setIsshow(vo.getIsshow());
		this.setContext(vo.getContext());
		this.setLogtype(vo.getLogtype());
	}
	
	public PubBilllog getVO(){
		PubBilllog po = new PubBilllog();
		po.setBilllogno(CoreUtils.parseLong(this.getBilllogno()));
		po.setBillno(CoreUtils.parseLong(this.getBillno()));
		po.setBilltype(this.getBilltype());
		po.setIsshow(this.getIsshow());
		po.setContext(this.getContext());
		po.setLogtype(this.getLogtype());
		return po;
	}
	
	
	public String getBilllogno() {
		return billlogno;
	}
	public void setBilllogno(String billlogno) {
		this.billlogno = billlogno;
	}
	public String getBillno() {
		return billno;
	}
	public void setBillno(String billno) {
		this.billno = billno;
	}
	public String getBilltype() {
		return billtype;
	}
	public void setBilltype(String billtype) {
		this.billtype = billtype;
	}
	public String getIsshow() {
		return isshow;
	}
	public void setIsshow(String isshow) {
		this.isshow = isshow;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public String getLogtype() {
		return logtype;
	}
	public void setLogtype(String logtype) {
		this.logtype = logtype;
	}

}
